package com.huawei;

import java.util.Scanner;

public class HJ013 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        String[] strArr = str.split(" ");
        StringBuilder sb = new StringBuilder();
        for (int i = strArr.length-1; i >= 0; i--) {
            sb.append(strArr[i]);
            sb.append(" ");
        }
        System.out.println(sb);

    }
}
